package com.jackeysun.app_common.http

import retrofit2.http.GET
import retrofit2.http.Query

interface ApiServe {

//http://fanyi.youdao.com/openapi.do?keyfrom=lewe518&key=70654389&type=data&doctype=json&version=1.1&q=

    @GET("/openapi.do")
    suspend fun translate(
        @Query("keyfrom") keyfrom: String,
        @Query("key")     key: Int,
        @Query("type")    type: String,
        @Query("doctype") doctype: String,
        @Query("version") version: String,
        @Query("q") word: String
    ): Word


}